package b.b.c;

import android.view.View;
import androidx.appcompat.app.AppCompatDelegateImpl;
import b.i.k.o;
import b.i.k.t;
import b.i.k.v;

/* compiled from: AppCompatDelegateImpl */
public class k implements Runnable {
    public final /* synthetic */ AppCompatDelegateImpl a;

    /* compiled from: AppCompatDelegateImpl */
    public class a extends v {
        public void b(View view) {
            k.this.a.o.setAlpha(1.0f);
            k.this.a.r.d(null);
            k.this.a.r = null;
        }

        public void c(View view) {
            k.this.a.o.setVisibility(0);
        }
    }

    public k(AppCompatDelegateImpl appCompatDelegateImpl) {
        this.a = appCompatDelegateImpl;
    }

    public void run() {
        AppCompatDelegateImpl appCompatDelegateImpl = this.a;
        appCompatDelegateImpl.p.showAtLocation(appCompatDelegateImpl.o, 55, 0, 0);
        this.a.J();
        if (this.a.W()) {
            this.a.o.setAlpha(0.0f);
            appCompatDelegateImpl = this.a;
            t a = o.a(appCompatDelegateImpl.o);
            a.a(1.0f);
            appCompatDelegateImpl.r = a;
            t tVar = this.a.r;
            a aVar = new a();
            View view = (View) tVar.a.get();
            if (view != null) {
                tVar.e(view, aVar);
                return;
            }
            return;
        }
        this.a.o.setAlpha(1.0f);
        this.a.o.setVisibility(0);
    }
}
